package com.hotec.PROJECT_NAME.component.basic;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

@Data
@ConfigurationProperties(prefix = "sms")
public class SmsConfigure {
    /**
     * 当前短信平台类型
     */
    private String type;

    /**
     * 银联的参数
     */
    private UnionPay unionpay;

    /**
     * 国托的参数
     */
    private Trust trust;

    @Data
    public static class UnionPay {
        private String url;

        private String apiKey;

        private String username;

        private String password;

        private String template;
    }

    @Data
    public static class Trust {
        private String url;

        private String appId;

        private String secret;

        private String template;
    }
}
